package com.uchonor.api.utils;

import com.uchonor.olight.agent.exception.BaseException;
import com.uchonor.olight.agent.module.web.vo.ServiceResult;
import com.uchonor.olight.agent.module.web.vo.StatusCode;

public class ResponseUtils {
    public static ServiceResult getExceptionResult(Exception e) {
        ServiceResult serviceResult = new ServiceResult();
        serviceResult.setSTATUS(StatusCode.CODE_3000.getKey());
        serviceResult.setMSG(e.getMessage());
        return serviceResult;
    }
}